package com.sky.controller.admin;

import com.sky.result.Result;
import com.sky.service.OrderService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Api("商户端订单管理接口")
@RequestMapping("/admin/order")
public class OrderManagerController {
    @Autowired
    private OrderService orderService;
    @PutMapping("/complete/{id}")
    public Result completeOrders(@PathVariable Long id){
        orderService.complete(id);
        return Result.success();
    }
}
